import request from "./index.js";
let webSer = process.env.VUE_APP_SERVICE_SERVE;
//获取验证码
export function obtainVerificationCode(query) {
  return request({
    url: `${webSer}/getCodeMessage`,
    method: "post",
    params: query,
  });
}

//用户注册
export function registerUserFUnction(query) {
  return request({
    url: `${webSer}/registerUser`,
    method: "post",
    params: query,
  });
}

//用户注册
export function loginUserFUnction(query) {
  return request({
    url: `${webSer}/loginUser`,
    method: "post",
    params: query,
  });
}

//用户查询
export function setLookFunction(query) {
  return request({
    url: `${webSer}/setLoginUser`,
    method: "post",
    params: query,
  });
}
//编辑用户信息
export function editUserFunction(query) {
  return request({
    url: `${webSer}/editLoginUser`,
    method: "post",
    params: query,
  });
}
